package com.logos.cartoon.enums;


import lombok.Getter;


/**
 * ai角色模型枚举
 */
@Getter
public enum AiModelEnum {

    DEEP_SEEK(96L, "deepseek-r1-250120"),
    AI_LUN(85L, "Eren:latest");


    public long code;

    public String desc;

    AiModelEnum(long code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static AiModelEnum getByCode(long codeVal) {
        for (AiModelEnum resultCodeEnum : AiModelEnum.values()) {
            if (resultCodeEnum.code == codeVal) {
                return resultCodeEnum;
            }
        }
        return null;
    }
}
